{% extends 'master.html' %}    <!--用用父模板-->
{% block title %} Beam个人博客 {% endblock %}


{% block classname %}
  {% for row in classification %}
   <li id="{{row.id}}"><a href=/article-{{ row.id }}>{{ row }}</a></li>
  {% endfor %}
{% endblock %}

{% block tags %}
  {% for row in articletags %}
    <span class="label badge-info">{{ row }}</span>
  {% endfor %}
{% endblock %}

{% block concent %}
  {% for row in article %}
    <h2>{{ row.article_name }}</h2>
		<span class="content" style="overflow:hidden;width:250px;white-space:nowrap;text-overflow:ellipsis;">{{ row.content |safe }}</span>
		<p><a class="btn" href=/detailed-{{ row.id }}>查看全文 »</a></p>
  {% endfor %}

	<div style="text-align:center">
		﻿{% for page_number in article.paginator.page_range %}
			{% ifequal page_number  article.number %}
				{{ page_number }}
			{% else %}
				<a href="?page={{ page_number }}">{{ page_number }}</a>
			{% endifequal %}
		{% endfor %}
	</div>
{% endblock %}

